package bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * @author wanghao7@asiainfo-linkage.com
 * @created on Dec 5, 2012 2:40:14 PM
 * @version
 * @since jdk1.5
 * @description
 */
@Entity
public class PollOption extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7323125777981910459L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer optionId;
	private String optionItem;

	@ManyToOne
	@JoinColumn(nullable = false)
	private PollTopic pollTopic;

	public Integer getOptionId() {
		return optionId;
	}

	public void setOptionId(Integer optionId) {
		this.optionId = optionId;
	}

	public String getOptionItem() {
		return optionItem;
	}

	public void setOptionItem(String optionItem) {
		this.optionItem = optionItem;
	}

	public PollTopic getPollTopic() {
		return pollTopic;
	}

	public void setPollTopic(PollTopic pollTopic) {
		this.pollTopic = pollTopic;
	}

}
